<script language="javascript">
function giveTarget(target)
{
	document.forms.loginForm.action = target;
}
</script>
<form action="" method="post" name="loginForm">
<div id="user_session">
<div style="float:right;"><a href="user_list.php">[$ User List]</a> <a href="document.php?id=_0">[@ Return to ROOT]</a></div>
User id: <input name="userid" class="session" />
Password: <input type="password" name="password" class="session" />
<input name="login" type="submit" value="Login" onclick="giveTarget('login_action.php')" class="session"/>
<input name="register" type="submit" value="Register" onclick="giveTarget('user.php?method=c')" class="session"/>
</div>
</form>